package com.joysuch.wwyt.bp.bean.investigate;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;

/**
 * @Author ZhangDong
 * @Date 2020/12/10 14:34
 */
@Data
@ExcelTarget(value = "bpInvestigateRecordExport")
public class BpInvestigateRecordExport {

    @Excel(name = "排查单编号")
    private Long id;
    @Excel(name = "排查名称")
    private String checkPlanName;
    @Excel(name = "排查类型")
    private String typeName;
    @Excel(name = "排查方式")
    private String checkWay;
    @Excel(name = "排查完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date checkFinishDate;
    @Excel(name = "排查人员")
    private String checkUserName;
    @Excel(name = "受检单位")
    private String dutyDepartName;
    @Excel(name = "排查结果")
    private String checkResult;
    @Excel(name = "异常处理")
    private String exceptionHandleStatus;

    public BpInvestigateRecordExport(BpInvestigateRecordBean recordBean, String checkWay, String dutyDepartName) {
        this.id = recordBean.getId();
        this.checkPlanName = recordBean.getCheckPlanName();
        this.typeName = recordBean.getTypeName();
        this.checkWay = checkWay;
        this.checkFinishDate = recordBean.getCheckFinishDate();
        this.checkUserName = recordBean.getCheckUserName();
        this.dutyDepartName = dutyDepartName;
        this.checkResult = recordBean.getCheckResult();
        this.exceptionHandleStatus = recordBean.getExceptionHandleStatus();
    }


}
